ws_dir = Pathname.new(__dir__)
ws_dir = ws_dir.parent until
  File.exist?("#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb") ||
  ws_dir.expand_path.to_s == '/'
require "#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb"

workspace 'AsyncStorageExample.xcworkspace'

options = {
  :fabric_enabled => false,
  :hermes_enabled => false,
}

use_test_app! do |target|
  target.app do
    pod 'RNCAsyncStorage', :path => '../..'
    pod 'AsyncStorageExample', :path => '..'
  end

  target.ui_tests do
    pod 'AsyncStorageExample-UITests', :path => '.'
  end
end
